package com.mocha.bass.test.hanyuan;

import com.hyzh.latte.vehicle.dmo.entity.CameraPGEntity;
import com.hyzh.latte.vehicle.dmo.entity.PolePGEntity;
import lombok.*;

@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class CameraInfo {

    private String pole;
    private String ip;
    private String cno;

    public CameraPGEntity buildEntity(String park){
        CameraPGEntity cameraPGEntity = new CameraPGEntity();
        cameraPGEntity.setCameraCode(this.cno);
        cameraPGEntity.setCameraName(this.ip);
        cameraPGEntity.setDirection(1);
        cameraPGEntity.setParkCode(park);
        cameraPGEntity.setPoleCode(this.pole);

        return cameraPGEntity;
    }
    public PolePGEntity buildPoleEntity(String park){
        PolePGEntity entity = new PolePGEntity();
        entity.setParkCode(park);
        entity.setPoleCode(this.pole);
        return entity;
    }

}
